#!/bin/bash
t_date=`date +%Y-%m-%d`
t_time=`date +%Y-%m-%d-%H%M%S`
echo ${t_date}
echo ${t_time}
hdfs dfs -mkdir /tmp/als/${t_time}
echo "hdfs dfs -mv /alldata/recommendModel/rates/$t_date /tmp/als/$t_time"
hdfs dfs -mv  /alldata/recommendModel/rates/${t_date} /tmp/als/${t_time}

echo "start run als algorithm...."
#/data/bigdata/spark/bin/spark-submit  --name=alsModel  --master=spark://localhost:7077 --executor-cores=8  --executor-memory=16g --driver-memory=8g --driver-java-options="-Xss4m" als-model.jar  sconf.properties
echo "Finish run als algorithm...."